import request from '@/utils/request'

// 查询枢纽互通统计列表
export function listInterchangeStat(query) {
  return request({
    url: '/function/InterchangeStat/list',
    method: 'get',
    params: query
  })
}

// 查询枢纽互通统计详细
export function getInterchangeStat(id) {
  return request({
    url: '/function/InterchangeStat/' + id,
    method: 'get'
  })
}

// 新增枢纽互通统计
export function addInterchangeStat(data) {
  return request({
    url: '/function/InterchangeStat',
    method: 'post',
    data: data
  })
}

// 修改枢纽互通统计
export function updateInterchangeStat(data) {
  return request({
    url: '/function/InterchangeStat',
    method: 'put',
    data: data
  })
}

// 删除枢纽互通统计
export function delInterchangeStat(id) {
  return request({
    url: '/function/InterchangeStat/' + id,
    method: 'delete'
  })
}

// 导出枢纽互通统计
export function exportInterchangeStat(query) {
  return request({
    url: '/function/InterchangeStat/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
